package DMSXL._2023Before.Array;

/*public class 代码随想录.之前.ListNode_ {
    public static void main(String[] args) {
        ListNode listNode1 = new ListNode(1);
        ListNode listNode2 = new ListNode(2);
        ListNode listNode3 = new ListNode(3);
        listNode1.next = listNode2;
        ListNode first = new ListNode();
        first = listNode1;
        while (first != null){
            System.out.println(first.x);
            first =  first.next;
        }

        listNode3.next = listNode1.next;
        listNode1.next = listNode3;
        first = listNode1;
        while (first != null){
            System.out.println(first.x);
            first =  first.next;
        }

        listNode1.next = listNode1.next.next;

        first = listNode1;
        while (first != null){
            System.out.println(first.x);
            first =  first.next;
        }
    }
}

class ListNode{
    int x;
    ListNode next;

    public ListNode() {

    }

    public ListNode(int x) {
        this.x = x;
    }
}*/